﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DeviceMap.aspx.cs" Inherits="Mercator2.DeviceMap" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">


            
    .styleFixedTable
    {
        table-layout:fixed;
        word-wrap:break-word;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MERCATOR_histConnectionString %>" 
        SelectCommand="SELECT * FROM [Device]"></asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
        DataKeyNames="DeviceID" DataSourceID="SqlDataSource1" ForeColor="#333333" 
        Width="936px" CssClass="styleFixedTable" 
        onselectedindexchanged="GridView1_SelectedIndexChanged2">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:CommandField SelectText="Mapa" ShowSelectButton="True">
            <HeaderStyle Width="5%" />
            </asp:CommandField>
            <asp:HyperLinkField DataNavigateUrlFields="DeviceID" 
                DataNavigateUrlFormatString="Device.aspx?ID={0}" DataTextField="DeviceID" 
                HeaderText="Nr. disp." />
            <asp:BoundField DataField="VRN" HeaderText="Placa" SortExpression="VRN" />
            <asp:BoundField DataField="ServerIP" HeaderText="ServerIP" 
                SortExpression="ServerIP" />
            <asp:BoundField DataField="SMSManagementNumber" 
                HeaderText="Cel. gestor" SortExpression="SMSManagementNumber" />
            <asp:BoundField DataField="LastLongitude" HeaderText="Longitude" 
                SortExpression="LastLongitude" />
            <asp:BoundField DataField="LastLatitude" HeaderText="Latitude" 
                SortExpression="LastLatitude" />
            <asp:BoundField DataField="LastSpeed" HeaderText="Veloc." 
                SortExpression="LastSpeed" />
            <asp:BoundField DataField="LastMileage" HeaderText="Odômetro" 
                SortExpression="LastMileage" />
            <asp:BoundField DataField="LastUploadTime" HeaderText="Últ. atual." 
                SortExpression="LastUploadTime" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <br />
    <asp:Literal ID="js" runat="server"></asp:Literal>
    <asp:TextBox ID="txtAddress" runat="server" Height="99px" TextMode="MultiLine" 
            Width="931px" Font-Bold="True" style="margin-top: 0px"></asp:TextBox>
    <div id="map_canvas" 
            style="width: 100%; height: 728px; margin-bottom: 2px; margin-top: 5px;" 
            __designer:mapid="55">
    </div>
</asp:Content>
